Skip to content

gh-122029: Log call events in sys.setprofile when it's a method with c function#122072

Merged
gpshead merged 3 commits intopython:mainfrom
gaogaotiantian:setprofile-method
Jul 23, 2024
Merged

gh-122029: Log call events in sys.setprofile when it's a method with c function#122072
gpshead merged 3 commits intopython:mainfrom
gaogaotiantian:setprofile-method

Conversation

@gaogaotiantian
Copy link
Member

@gaogaotiantian gaogaotiantian commented Jul 21, 2024

Currently sys.setprofile logs the c_return event, but not c_call event, when the function is a PyMethodObject that points to a PyCFunction. This patch fixed that.

@miss-islington-app
Copy link

Thanks @gaogaotiantian for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

@bedevere-app
Copy link

bedevere-app bot commented Jul 23, 2024

GH-122205 is a backport of this pull request to the 3.13 branch.

@bedevere-app
Copy link

bedevere-app bot commented Jul 23, 2024

GH-122206 is a backport of this pull request to the 3.12 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants